# IPMB 协议库测试构建配置

if get_option('enable_tests')
    ipmb_test_sources = files([
        'test_ipmb.cpp',
    ])

    ipmb_test = executable(
        'test_ipmb',
        ipmb_test_sources,
        dependencies: [
            gtest_dep,
            gmock_dep,
            ipmb_dep,
            mc_core_dep,
            mc_engine_dep,
        ],
        include_directories: [
            include_directories('../../../libraries'),
            mc_core_inc,
        ],
    )

    # 添加到测试套件
    test('ipmb_test', ipmb_test)
endif
